# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-java
pkgver=0.19.1_git20220530
_gitrev=ac14b4b1884102839455d32543ab6d53ae089ab7
pkgrel=0
pkgdesc="Java grammar for tree-sitter"
url="https://github.com/tree-sitter/tree-sitter-java"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/tree-sitter/tree-sitter-java/archive/$_gitrev/tree-sitter-java-$_gitrev.tar.gz"
builddir="$srcdir/$pkgname-$_gitrev"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
c9aa51cec26b0faf994332933a6ef7a9c10193657a3f02bbf5a723e04effebf863eefdc4664550e475a4323dd91777ab2c299b38f422a6f5b2892d75c43d56da  tree-sitter-java-ac14b4b1884102839455d32543ab6d53ae089ab7.tar.gz
"
